//
//  NRWCenterMenuCell.m
//  NRWMall
//
//  Created by 张记 on 2018/6/4.
//  Copyright © 2018年 com.anpxd. All rights reserved.
//

#import "NRWCenterMenuCell.h"

@interface NRWCenterMenuCell ()
@property (weak, nonatomic) IBOutlet UIImageView *iconImage;
@property (weak, nonatomic) IBOutlet UILabel *mainTitle;

@end

@implementation NRWCenterMenuCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)setIndex:(NSIndexPath *)index{
    _index = index;
    NSArray *iconS = @[@"mine_collection",@"mine_subscribe",@"mine_lookup_history",@"mine_meassage"];
    NSArray *titleS = @[@"我的收藏",@"我的订阅",@"浏览历史",@"我的消息"];
    self.iconImage.image = [UIImage imageNamed:iconS[index.row]];
    self.mainTitle.text = titleS[index.row];
    
}
@end
